<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>添加用户</title>
  <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>

<body>

<div style="width:600px;height:100%;margin-left:270px;">
  <form th:action="@{/emp/add2}" method="post">
    <!--        form-control给input添加这个class后就会使用bootstrap自带的input框-->
    员工编号：<input class="form-control" type="text" th:value="${empno}" name="empno"><br>
    <!--注意参数的拼接-->
    姓名：<input class="form-control" type="text" th:value="${ename}" name="ename"><br>
    工作：<input class="form-control" type="text" th:value="${job}" name="job"><br>
    直属领导：<input class="form-control" type="text" th:value="${mgr}" name="mgr"><br>
    入职时间：<input class="form-control" type="text" th:value="${hiredate}" name="hiredate"><br>
    薪水：<input class="form-control" type="text" th:value="${sal}" name="sal"><br>
    津贴：<input class="form-control" type="text" th:value="${comm}" name="comm"><br>
    部门编号：<input class="form-control" type="text" th:value="${deptno}" name="deptno"><br>
    <button class="btn btn-primary btn-lg btn-block">保存</button>
  </form>
</div>

</body>
</html>